<html>

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>gson</title>
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<link href="/DocGit/css/main.css" rel="stylesheet">
		<link href="/DocGit/css/project.css" rel="stylesheet">
	<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="/DocGit/javascript/main.js"></script>
</head>

<body>
	
<header>
	<div class="container">
		<h1>gson</h1>
		<p>
		Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.
	</p>
		<p id="tags"><span class="badge">json</span></p>
	</div>
</header>
<div class="container" id="menu">
	<ul class="list-inline">
		<li><span class="glyphicon glyphicon-home"></span> <a href="https://github.com/google/gson" target="_blank" class="home">项目主页</a></li>
	</ul>
</div>
<div class="container" id="body">
	<ol class="breadcrumb">
	  <li><a href="javascript:void(0)">docgit</a></li>
	  <li><a href="/DocGit/archieve/java">java</a></li>
	  <li class="active">gson</li>
	</ol>
			<hr/>
			<h4>2.x</h4>
			<table class="table table-bordered table-version">
				<tr>
					<th>2.8.5</th>
						<td 
							data-target="_blank" 
							data-url="http://www.javadoc.io/doc/com.google.code.gson/gson/2.8.5"
							data-title="true"
						>
							<span class="glyphicon glyphicon-file"></span> javadoc
						</td>
						<td class="artifacts"
							data-target="_blank" 
							data-url="http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar"
							data-title="true"
						>
							<span class="glyphicon glyphicon-download-alt"></span> gson-2.8.5.jar
						</td>
				</tr>
				<tr>
					<th>2.2</th>
						<td 
							data-target="_blank" 
							data-url="http://www.javadoc.io/doc/com.google.code.gson/gson/2.2"
							data-title="true"
						>
							<span class="glyphicon glyphicon-file"></span> javadoc
						</td>
						<td class="artifacts"
							data-target="_blank" 
							data-url="http://central.maven.org/maven2/com/google/code/gson/gson/2.2/gson-2.2.jar"
							data-title="true"
						>
							<span class="glyphicon glyphicon-download-alt"></span> gson-2.2.jar
						</td>
				</tr>
			</table>
				<div>
					<a target="_blank" href="http://mvnrepository.com/artifact/com.google.code.gson/gson" title="central">
						<span class="maven">Maven</span><span class="maven-artifact">gson</span>
					</a>
				</div>
				<pre class="maven-code">&lt;dependency&gt;
    &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
    &lt;artifactId&gt;gson&lt;/artifactId&gt;
    &lt;version&gt;2.8.5&lt;/version&gt;
&lt;/dependency&gt;</pre>
			<hr/>
			<h4>1.x</h4>
			<table class="table table-bordered table-version">
				<tr>
					<th>1.7.2</th>
						<td 
							data-target="_blank" 
							data-url="http://www.javadoc.io/doc/com.google.code.gson/gson/1.7.2"
							data-title="true"
						>
							<span class="glyphicon glyphicon-file"></span> javadoc
						</td>
						<td class="artifacts"
							data-target="_blank" 
							data-url="http://central.maven.org/maven2/com/google/code/gson/gson/1.7.2/gson-1.7.2.jar"
							data-title="true"
						>
							<span class="glyphicon glyphicon-download-alt"></span> gson-1.7.2.jar
						</td>
				</tr>
			</table>
				<div>
					<a target="_blank" href="http://mvnrepository.com/artifact/com.google.code.gson/gson" title="central">
						<span class="maven">Maven</span><span class="maven-artifact">gson</span>
					</a>
				</div>
				<pre class="maven-code">&lt;dependency&gt;
    &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
    &lt;artifactId&gt;gson&lt;/artifactId&gt;
    &lt;version&gt;1.7.2&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</body>

</html>